<extend name="Public:common" />
<!--/sidebar-->
<block name="content">
    <div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i>
            <a href="/Admin">首页</a>
            <span class="crumb-step">&gt;</span>
            <a class="crumb-name" href="__MODULE__/Rbac/index">管理员列表</a>
            <span class="crumb-step">&gt;</span>
            <span>新增帐号</span></div>
        </div>
        <div class="result-wrap">
            <div class="result-content">
                <form action="__MODULE__/Rbac/insert" method="post" id="login" name="login" onsubmit="return Validator.ValidateForm(this,3);">
                   <input type='hidden' name='action' value='add' />
                    <table class="insert-tab" width="100%">
                        <tbody><tr>
                            <th width="120"><i class="require-red">*</i>帐号：</th>
          						 <td>
                               <input class="common-text input" type='text' id='username' dataType="Custom"  name='account' size='30' regexp="^\w{4,15}$"  msg="（输入字母、数字或下划线（5-16位），必须以字母开头）" onBlur="Validator.Validate(this)"/>
                               <span id='usernameWarning'></span>
                            </td> 
             
                             <tr>
                                <th><i class="require-red">*</i>密码：</th>
                                <td>
                                    <input class="common-text input" id='pwd' dataType=Custom name="password" size="30"  regexp="^\w{4,15}$" msg="（输入字母、数字或下划线（5-16位））"  type="password" onBlur="Validator.Validate(this)" />
                                	<span id='passwordWarning'></span>
                                </td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>确认密码：</th>
                                <td>
                                    <input class="common-text input" id='qpwd' dataType=Repeat to='password' name="qrenpassword" size="30"  msg="（两次密码不一致）"  type="password" onBlur="Validator.Validate(this)" />
                                	<span id='qrenpasswordWarning'></span>
                                </td>
                            </tr>
                            <tr>
                                <th>中文名: </th>
                                <td>
                                	<input class="common-text input" id='cname' dataType=Custom name="nickname" size="30" regexp="^[\u4E00-\u9FA5]{2,10}$" msg="（输入字母、请输入汉字）"  type="text" onBlur="Validator.Validate(this)" />
                                	<span id='chinanameWarning'></span>
                                	</td>
                            </tr>
                            <tr>
                                <th>角色: </th>
                                <td>
                                	<select name='role_id'>
                                		<volist name='rlist' id='vo'>
                                		<option value='<{$vo.id}>'><{$vo.name}></option>
                                		</volist>
                                	</select>
                                </td>
                            </tr>
                            <tr>
                                <th>邮箱：</th>
                                <td>
									<input class="common-text input"  id='em' dataType=Custom name="email" size="30" regexp="^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-])+" msg="（邮箱格式）"  type="text" onBlur="Validator.Validate(this)" />
									<span id='emailWarning'></span>
								</td>
                            </tr>
                            <tr>
                                <th>排序：</th>
                                <td>
									<input class="common-text input" id='sort' dataType=Custom name="sort" size="1" value="0" type="text" regexp="^[0-9]+$" msg="（请填写数字)" onBlur="Validator.Validate(this)" />
									<span id='sortWarning'></span>
								</td>
                            </tr> 
                            <tr>
                                <th></th>
                                <td>
                                    <input class="btn btn-primary btn6 mr10" value="创建" type="submit">
                                    <input class="btn btn6" onclick="location.href='__MODULE__/Rbac/index' " value="返回" type="button">
                                </td>
                            </tr>
                        </tbody></table>
                </form>
            </div>
        </div>

    </div>
    <!--/main-->
    </block>